<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@taglib prefix="widget" uri="/widget" %>

<link rel="stylesheet" type="text/css" href="<spring:theme code="stylesheet.signin" />" />

<div class="sa-container">
    <div class="row">
    <div class="auth-form col-md-4 well center-block">
        <div class="auth-form-body">
            <c:if test="${not empty errorNo}">
                <div class="alert alert-danger tc"><spring:message code="docrepository.errorNo.${errorNo}" text="" /></div>
            </c:if>
            <form action='<widget:actionUrl mode="/signin/doSignin" />' method="post">
                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon"><span class="glyphicon glyphicon-user"></span></div>
                        <input id="userAccount" name="userAccount" class="form-control" placeholder="<spring:message code="docrepository.user.auth.useraccount" />" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="input-group">
                        <div class="input-group-addon"><span class="glyphicon glyphicon-lock"></span></div>
                        <input type="password" id="password" name="password" class="form-control" placeholder="<spring:message code="docrepository.user.auth.password" />" />
                    </div>
                </div>
                <div class="form-group">
                    <div class="checkbox" style="display: inline-block; margin: 0;">
                        <label><input type="checkbox" name="autologin" /><spring:message code="docrepository.user.auth.autologin" /></label>
                    </div>
                    <div class="fr"><a href="<c:url value="/forgotpassword" />"><spring:message code="docrepository.user.auth.forgotpassword" /></a></div>
                </div>
                <div class="center-block">
                    <button type="submit" class="btn btn-primary btn-signin"><spring:message code="docrepository.user.action.signin" /></button>
                </div>
                <div class="pt10"><a href="<c:url value="/signup" />"><spring:message code="docrepository.user.action.signup.link" /></a></div>
            </form>
        </div>
    </div>
    </div>
</div>